<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ include file="taglibs.jsp" %>
<%@ include file="easyuiLib.jsp" %>
<%String fileEncoding = System.getProperty("file.encoding"); %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<script type="text/javascript" charset="utf-8">
	var _data = [{
		"id":1,
		"name":'产品',
		"icon":'icon-save',
		"children":[{
			"id":11,
			"name":'基础组件',
			"icon":'icon-group'
		}],
	},{
		"id":2,
		"name":'解决方案',
		"icon":'icon-add',
		"children":[{
			"id":22,
			"name":'移动',
			"url":'hello'
		}]
	}]
	$(function(){
		$('#t').treegrid({
			idField:'id',
			treeField:'name',
			columns:[[
				{title:'名称',field:'name',width:'50%'},
				{title:'图标',field:'icon',width:'10%'},
				{title:'URL',field:'url',width:'40%'}
			]]
		});
		$('#t').treegrid('loadData',_data);
	})
</script>
<script ></script>
<title>你猜猜看</title>
</head>
<body class="easyui-layout" fit="true">
	<div region="center" fit="true">
		<table id="t" ></table>
	</div>
	<div region="north" style="height:100">
		<span><%=fileEncoding%></span>
	</div>
</body> 
</html>